package com.wiretap.dao;

import com.wiretap.po.Message;
import com.wiretap.util.Pager;

public interface MessageDao {
	void addMessage(Message msg) throws Exception;

	int deleteMessage(String[] ids) throws Exception;

	Pager<Message> queryMessageByOwner(String phone, int currentPage, int pageSize) throws Exception;

	Message getMessageById(String id) throws Exception;

	void updateMessageDeleteStatus(String mid, boolean delete) throws Exception;

	long getMessageCountByPhone(String phone) throws Exception;

	int deleteMessageByPhone(String phone) throws Exception;
}
